package com.ruoyi.cs.base.supplier.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;
import java.util.List;

/**
 * 供应商信息表
 * cs_supplier_info
 * @author Drj 2021/6/28
 */
public class SupplierInfo extends BaseEntity {
    /**
     * 供应商编号
     */
    @NotNull(message = "供应商编号不能为空")
    @ApiModelProperty(value = "供应商编号", required = true)
    private String supplierInfoId;
    /**
     * 供应商名称
     */
    private String supplierInfoName;
    /**
     * 分类编号
     */
    private Integer sortId;
    /**
     * 分类名称
     */
    private String sortName;
    /**
     * 供应商地址
     */
    private String supplierInfoAddress;
    /**
     * 供应商级别
     */
    private String supplierInfoLevel;
    /**
     * 是否评级状态
     */
    private String levelAutoStatus;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "创建时间")
    private Timestamp createTime;


    private List<SupplierContact> supplierContacts;

    @Override
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getSupplierInfoId() {
        return supplierInfoId;
    }

    public void setSupplierInfoId(String supplierInfoId) {
        this.supplierInfoId = supplierInfoId;
    }

    public String getSupplierInfoName() {
        return supplierInfoName;
    }

    public void setSupplierInfoName(String supplierInfoName) {
        this.supplierInfoName = supplierInfoName;
    }

    public Integer getSortId() {
        return sortId;
    }

    public void setSortId(Integer sortId) {
        this.sortId = sortId;
    }

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    public String getSupplierInfoAddress() {
        return supplierInfoAddress;
    }

    public void setSupplierInfoAddress(String supplierInfoAddress) {
        this.supplierInfoAddress = supplierInfoAddress;
    }

    public String getSupplierInfoLevel() {
        return supplierInfoLevel;
    }

    public void setSupplierInfoLevel(String supplierInfoLevel) {
        this.supplierInfoLevel = supplierInfoLevel;
    }

    public String getLevelAutoStatus() {
        return levelAutoStatus;
    }

    public void setLevelAutoStatus(String levelAutoStatus) {
        this.levelAutoStatus = levelAutoStatus;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<SupplierContact> getSupplierContacts() {
        return supplierContacts;
    }

    public void setSupplierContacts(List<SupplierContact> supplierContacts) {
        this.supplierContacts = supplierContacts;
    }
}
